"use strict";
var product = { title: '面包', price: 12, intro: '豆沙' };
var productList = [
    { title: '面包1', price: 12, intro: '豆沙' },
    { title: '面包2', price: 1 },
    { title: '香蕉', price: 11, oldPrice: 7, type: '进口' }
];
// function compare(num1:number,num2:number):boolean{
//     return num1>num2
// }
var compare = function (num1, num2) {
    return num1 > num2;
};
compare(2, 1);
var Cat = /** @class */ (function () {
    function Cat(name) {
        this.name = name;
    }
    Cat.prototype.eat = function (food) {
        console.log(this.name + '吃' + food);
    };
    return Cat;
}());
var cat = new Cat('小猫');
cat.eat('鱼');
